/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  LogBuffer.java                                      
 *  File Contents Outline :  日志缓冲区                  
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */

package cn.edu.thu.log.read;

import java.util.*;

public class LogBuffer {
	/** tag */
	ArrayList<String> logHeadTagList;
//	ArrayList<String> logBodyTagList;
	//ArrayList<String> logTagList;
	/** content */
	ArrayList<Object> logHeadContent;
	ArrayList<Object> logBodyContent;
        private Hashtable<String,String> logBodyMap;
	ArrayList<Object> logContent;
        String logBody;
	/** fileName */
	String logPath;
	/** fileName */
	String logName;
	/**config info*/
	ArrayList<String> caseIDList;
	String CaseIDString;
	ArrayList<Object> activityIDContentList;
        	private Hashtable attributeIDContentMap;
	ArrayList<String> activityIDTagList;
	String timeStamp;
	
	public ArrayList<Object> getActivityIDContentList() {
		return activityIDContentList;
	}

	public void setActivityIDContentList(ArrayList<Object> activityIDContentList) {
		this.activityIDContentList = activityIDContentList;
	}

	public ArrayList<String> getActivityIDTagList() {
		return activityIDTagList;
	}

	public void setActivityIDTagList(ArrayList<String> activityIDTagList) {
		this.activityIDTagList = activityIDTagList;
	}

	
	
	public String getCaseIDString() {
		return CaseIDString;
	}

	public void setCaseIDString(String caseIDString) {
		CaseIDString = caseIDString;
	}

	public ArrayList<String> getCaseIDList() {
		return caseIDList;
	}

	public void setCaseIDList(ArrayList<String> caseIDList) {
		this.caseIDList = caseIDList;
	}

	

	public String getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}

	/** get and set functions */
	public ArrayList<String> getLogHeadTagList() {
		return logHeadTagList;
	}

	public void setLogHeadTagList(ArrayList<String> logHeadTagList) {
		this.logHeadTagList = logHeadTagList;
	}

//	public ArrayList<String> getLogBodyTagList() {
//		return logBodyTagList;
//	}
//
//	public void setLogBodyTagList(ArrayList<String> logBodyTagList) {
//		this.logBodyTagList = logBodyTagList;
//	}

//	public ArrayList<String> getLogTagList() {
//		return logTagList;
//	}

//	public void setLogTagList(ArrayList<String> logTagList) {
//		this.logTagList = logTagList;
//	}

	public ArrayList<Object> getLogHeadContent() {
		return logHeadContent;
	}

	public void setLogHeadContent(ArrayList<Object> logHeadContent) {
		this.logHeadContent = logHeadContent;
	}

	public ArrayList<Object> getLogBodyContent() {
		return logBodyContent;
	}

	public void setLogBodyContent(ArrayList<Object> logBodyContent) {
		this.logBodyContent = logBodyContent;
	}

	public ArrayList<Object> getLogContent() {
		return logContent;
	}
        public void setLogBody(String logBody) {
		this.logBody = logBody;
	}

	public String getLogBody() {
		return logBody;
	}


	public void setLogContent(ArrayList<Object> logContent) {
		this.logContent = logContent;
	}

	public String getLogPath() {
		return logPath;
	}

	public void setLogPath(String logPath) {
		this.logPath = logPath;
	}

	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}

    /**
     * @return the logBodyMap
     */
    public Hashtable<String,String> getLogBodyMap() {
        return logBodyMap;
    }

    /**
     * @param logBodyMap the logBodyMap to set
     */
    public void setLogBodyMap(Hashtable<String,String> logBodyMap) {
        this.logBodyMap = logBodyMap;
    }
@Override
public String toString(){
    String str="";
    for(Object headstr:logHeadContent){
        str+=headstr+" ";
    }
    Set<Map.Entry<String, String>> set = logBodyMap.entrySet();
    for (Iterator<Map.Entry<String, String>> it = set.iterator(); it.hasNext();) {
            Map.Entry<String, String> entry = it.next();
            str+=entry.getValue()+" ";
    }
    return str;
   
}
    /**
     * @return the attributeIDContentMap
     */
    public Hashtable getAttributeIDContentMap() {
        return attributeIDContentMap;
    }

    /**
     * @param attributeIDContentMap the attributeIDContentMap to set
     */
    public void setAttributeIDContentMap(Hashtable attributeIDContentMap) {
        this.attributeIDContentMap = attributeIDContentMap;
    }



}
